(function(app){
    app
        .controller("privacy",["$scope","$rootScope","$state","myFactory",'$interval','$stateParams',"$q",'$timeout','$location','$http','$ionicHistory',function($scope,$rootScope,$state,myFactory,$interval,$stateParams,$q,$timeout,$location,$http,$ionicHistory){
        	
        	$scope.load = function () {
        		var win_width = document.documentElement.clientWidth;
        		var win_height = document.documentElement.clientHeight;
			    $("#iframe").css({"width": win_width + 'px',"height": win_height + 'px'});
        	}
        	
        	gxxxOpen = function(){ 
				$state.go('share_infomation', {
                    itemId: "",
                    chdrnum01: "",
                    chdrcoy: ""
                });
			} 
        	/*S2022102124053营运系统增加隐私政策需求 add by huanghk 20230203 start*/
        	childrenInfoOpen = function(){ 
				$state.go('childrens_infomation', {
                    itemId: "",
                    chdrnum01: "",
                    chdrcoy: ""
                });
			}
        	/*S2022102124053营运系统增加隐私政策需求 add by huanghk 20230203 end*/
        	//返回
            $scope.goBack=function(){
        		$rootScope['flag'] ='';
                myFactory.goBack();
            };
        }]);
    
	//指针弹窗，不同APP，要提取到app.controller后面
	app.directive('infoid',function(){
		return {
			restrict: 'EA',		//指明指令在DOM里面以什么形式被声明,EA.表示即可以是元素也可以是属性
			templateUrl: 'html/input/content_base_info.html'+app.clearCache,
			replace: true,		//设置解析后，DOM声明的指令是否消失
			link: function(scope,element,attrs){  //链接函数负责注册DOM事件和更新DOM,
				console.log('指令完成');
			}
		}
	});
})(app);